﻿using PgBirdie.Core.Model.Database.Structure.Index;

namespace PgBirdie.Core.Service.DbObject
{
    /// <summary>
    /// Database object should be validated at earliest possible place,
    /// in this case, when extracting db object from sql text (pg_dump).
    /// If an an exception is thrown there is something wrong in the
    /// extraction process that should be fixed.
    /// </summary>
    public interface IDbObjectValidator
    {
        void ValidateIndex(PgIndex index);
    }
}